import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "serialno" })
export class SerialNo extends EntityObjectType<SerialNo>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.INT
    })
    origin: number;
    
    @Define.Column({
        DataType: Define.DataType.INT
    })
    seed: number;

    @Define.Column({
        DataType: Define.DataType.BIGINT
    })
    createTime: number;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    storeId: string;
}